package keeto.com.vn.bms.network.task;

import java.util.Set;

import keeto.com.vn.bms.config.IBMSCore;
import keeto.com.vn.bms.network.IBMSProtocol;
import keeto.com.vn.bms.network.IRunable;
import keeto.com.vn.bms.utils.BMSListener;

public abstract class AbstractTask implements IRunable {

	protected Set<BMSListener> listener= null;
	protected String Authkey;
	protected IBMSProtocol protocol;
	protected IBMSCore core;
	
	public AbstractTask(BMSListener listener, IBMSCore core) {
		this.listener = core.copyAndReconstructListeners(listener);
		this.core = core;
		this.Authkey = core.getAuthKey();
		this.protocol = core.getProtocol();
	}
	
}
